package createThread.cn.tedu.threaddemo.test1.Anonymous.test2;

public class Main {
    public static <test2> void main(String[] args) {
        TestDad dad = new Test1();
        if(dad instanceof Test2){
            Test2 test2 = (Test2) dad;
        }else {
            System.out.println("dad 不是 Test2 类型，不能转换！");
        }
    }
}
